/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.weed.client.component.ext;


import java.awt.Cursor;
import javax.swing.Action;
import javax.swing.Icon;
import javax.swing.JButton;

/**
 *
 * @author Administrator
 */
public class RButton extends JButton implements java.io.Serializable {

    public RButton() {
        this(null, null);
    }
    public RButton(Icon icon) {
        this(null, icon);
    }

    public RButton(String text) {
        this(text, null);
    }

    public RButton(Action action) {
        this();
	setAction(action);
    }

    public RButton(String text, Icon icon) {
        super(text,icon);
        this.setOpaque(false);
        this.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    }
}
